﻿<%@ Page Title="monthsked" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="lcs.Web.monthsked.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<!--Title -->

            <!--Title end -->

            <!--Add  -->

            <!--Add end -->

            <!--Search -->
            <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                        
                    </td>
                    <td class="tdbg" style="text-align:left;">                         
                       <b>项目名：</b> <asp:TextBox ID="txtKeyword2" runat="server" Width="84px"></asp:TextBox>   <b>供应商：</b>
                    <asp:TextBox ID="txtKeyword" runat="server" Width="91px"></asp:TextBox>
                         <b>中标批次：</b>
                    <asp:TextBox ID="txtwinbid" runat="server" Width="91px"></asp:TextBox><b>分配状态：</b><asp:DropDownList ID="ddlstate" runat="server">
                            <asp:ListItem Selected="True">未分配</asp:ListItem>
                            <asp:ListItem>所有</asp:ListItem>
                        </asp:DropDownList>
&nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    &nbsp;</td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" 
            GridLines="None"  OnPageIndexChanging ="gridView_PageIndexChanging"
                   DataKeyNames="mid" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="False"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                        <HeaderTemplate>
                                    <input id="Checkbox1" type="checkbox" onclick="javascript: chall(this)" />                                    
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis"  runat="server" />
                                </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                            </asp:TemplateField> 
                            
		<asp:BoundField DataField="spotunit" HeaderText="抽检实施单位" SortExpression="spotunit" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="projectName" HeaderText="工程名称" SortExpression="monthsupplyid" ItemStyle-HorizontalAlign="Center"  > 
                            
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
<asp:BoundField DataField="sname" HeaderText="供应商">
</asp:BoundField>
<asp:BoundField DataField="material" HeaderText="产品名称">
</asp:BoundField>
<asp:BoundField DataField="mbm" HeaderText="型号规格">
</asp:BoundField>
<asp:BoundField DataField="winBid" HeaderText="中标批次">
</asp:BoundField>
<asp:BoundField DataField="num" HeaderText="中标数量">
</asp:BoundField>
<asp:BoundField DataField="unit" HeaderText="单位">
</asp:BoundField>
		<asp:BoundField DataField="spottype" HeaderText="抽检方式" SortExpression="spottype" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="spotnum" HeaderText="抽检样品数量" SortExpression="spotnum" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="spotcontent" HeaderText="抽检主要内容" SortExpression="spotcontent" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="usework" HeaderText="项目单位" />
		<asp:BoundField DataField="spotopinion" HeaderText="抽检意见" SortExpression="spotopinion" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="plandate" HeaderText="计划日期" SortExpression="plandate" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="user_name" HeaderText="质检员" SortExpression="uid" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="qresult" HeaderText="结果" SortExpression="qresult" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
		<asp:BoundField DataField="question" HeaderText="问题分析" SortExpression="question" ItemStyle-HorizontalAlign="Center"  > 
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="mid" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                                Text="编辑" Visible="False"  >
<ControlStyle Width="50px"></ControlStyle>
                        </asp:HyperLinkField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除"  >
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                         Text="删除"></asp:LinkButton>
                                </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                        </Columns>

<RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddldis" runat="server">
                        </asp:DropDownList>
&nbsp;<asp:Button ID="btnDelete0" runat="server" Text="分配" OnClick="btnDelete_Click" OnClientClick="return chtest()"/>                       
                    &nbsp;<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click"/>                       
                    </td>
                </tr>
            </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
